package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;

@Data
@ApiModel("用户登录")
public class LoginBean {

    @ApiModelProperty(value = "用户名", required = true)
    @NotEmpty(message = "用户名不能为空！")
    String username;

    @ApiModelProperty(value = "密码", required = true)
    @NotEmpty(message = "密码不能为空！")
    String password;
}
